#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "file.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_roles_currentRowChanged(int current_row);

    void on_roads_currentRowChanged(int current_row);

private:
    Ui::MainWindow *ui;
    File::Mayu mayu;
    QList<Data::Road> now_roads;
    void read_roads(const QList<Data::Roads>& roads);       // 将roads解析到now_roads和ui->roads列表中
};

#endif // MAINWINDOW_H
